<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="crm.model.Employees"%>
<%@page import="crm.control.EmployeesControl"%>
<%@page import="crm.util.GetBaseParam"%>
<%@page import="crm.control.SaleareaControl"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" href="../../../resources/css/reset.css" type="text/css" media="screen" />
		<link rel="stylesheet" href="../../../resources/css/inner.css" type="text/css" media="screen" />
		<style type='text/css'>
		 a{font-size:12px; text-decoration:none; color:#70B300;}
		</style>
		<title>read employees</title>
	</head>
	<body>
		<%
			request.setCharacterEncoding("UTF-8");
			int id = Integer.parseInt(request.getParameter("id"));
			Employees employees = new Employees();
			employees = EmployeesControl.getEmpolyeesById(id);
		%>
		<p class='title'>员工个人信息</p>
			<table>
				<tr>
					<td>
						姓名
					</td>
					<td>
						<%out.print(employees.getName()); %>
					</td>
				</tr>
				<tr>
					<td>
						身份证号
					</td>
					<td>
						<%out.print(employees.getIdcard()); %>
					</td>
				</tr>
				<tr>
					<td>
						性别
					</td>
					<td>
						<%if(employees.getGender().equals("0"))out.print("女");else if(employees.getGender().equals("1"))out.print("男");%>
					</td>
				</tr>
				<tr>
					<td>
						出生年月
					</td>
					<td>
						<%out.print(employees.getBirthday()); %>
					</td>
				</tr>
				<tr>
					<td>
						民族
					</td>
					<td>
						<%out.print(GetBaseParam.getNationById(employees.getNation())); %>
					</td>
				</tr>
				<tr>
					<td>
						生源类别
					</td>
					<td>
						<%if(employees.getHome_type().equals("0"))out.print("农村");else if(employees.getHome_type().equals("1"))out.print("城市");%>
					</td>
				</tr>
				<tr>
					<td>
						政治面貌
					</td>
					<td>
						<%out.print(GetBaseParam.getPolityById(employees.getPolity()));%>
					</td>
				</tr>
				<tr>
					<td>
						婚否
					</td>
					<td>
						<%if(employees.getIs_married().equals("0"))out.print("未婚");else if(employees.getIs_married().equals("1"))out.print("已婚");%>
					</td>
				</tr>
				<tr>
					<td>
						子女生日
					</td>
					<td>
						<%out.print(employees.getBaby_birth()); %>
					</td>
				</tr>
				<tr>
					<td>
						职务
					</td>
					<td>
						<%out.print(GetBaseParam.getPositionById(employees.getPosition())); %>
					</td>
				</tr>
				<tr>
					<td>
						入职时间
					</td>
					<td>
						<%out.print(employees.getStart_time()); %>
					</td>
				</tr>
				<tr>
					<td>
						所属区域
					</td>
					<td>
						<%out.print(SaleareaControl.getAreaName(employees.getArea_id()));%>
					</td>
				</tr>
				<tr>
					<td>
						学历
					</td>
					<td>
						<%out.print(employees.getEdu_level()); %>
					</td>
				</tr>
				<tr>
					<td>
						手机号
					</td>
					<td>
						<%out.print(employees.getCellphone()); %>
					</td>
				</tr>
				<tr>
					<td>
						固定电话
					</td>
					<td>
						<%out.print(employees.getPhone()); %>
					</td>
				</tr>
				<tr>
					<td>
						Email
					</td>
					<td>
						<%out.print(employees.getEmail()); %>
					</td>
				</tr>

				<tr>
					<td>
						家庭住址
					</td>
					<td>
						<%out.print(employees.getFamily_address()); %>
					</td>
		</tr>
		</table>
	</body>
</html>